import request from '@/utils/request'

// 查询内购申请订单列表
export function myList(query) {
  return request({
    url: '/product/internalOrder/myList',
    method: 'get',
    params: query
  })
}
// 查询内购申请订单列表
export function listInternalOrder(query) {
  return request({
    url: '/product/internalOrder/list',
    method: 'get',
    params: query
  })
}
// 查询内购申请订单详细
export function getInternalOrder(id) {
  return request({
    url: '/product/internalOrder/' + id,
    method: 'get'
  })
}

// 新增内购申请订单
export function getOrderDetails(data) {
  return request({
    url: '/product/internalOrder/getOrderDetails',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function addInternalOrder(data) {
  return request({
    url: '/product/internalOrder',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function submitApplyByApplyIdList(data) {
  return request({
    url: '/product/internalOrder/submitApplyByApplyIdList',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function checkDingdingStatus(data) {
  return request({
    url: '/product/internalOrder/checkDingdingStatus',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function startApplyFlow(data) {
  return request({
    url: '/product/internalOrder/startApplyFlow',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function addComment(data) {
  return request({
    url: '/product/internalOrder/addComment',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function startApply(data) {
  return request({
    url: '/product/internalOrder/startApply',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function exportExcel(data) {
  return request({
    url: 'product/internalOrder/exportExcel',
    method: 'post',
    data: data
  })
}
// 新增内购申请订单
export function submitApply(data) {
  return request({
    url: '/product/internalOrder/submitApply',
    method: 'post',
    data: data
  })
}
// 修改内购申请订单
export function updateInternalOrder(data) {
  return request({
    url: '/product/internalOrder',
    method: 'put',
    data: data
  })
}

// 删除内购申请订单
export function delInternalOrder(id) {
  return request({
    url: '/product/internalOrder/' + id,
    method: 'delete'
  })
}
